<div class="mainContent">
  <% for region in @regions %>
  
  <fieldset>
  	<legend>Admins for <%=region.name%></legend>
	<% if region.users.size == 0%>
		<div style="color: red;"> There are no admins for this region</div>
		<br/>
	<% else %>
		<div class="contentBox">
	    <% for user in region.users %>
			<div class="itemContainer">
		    	<div>Name: <strong><%= user.name %></strong></div>
		    	<div>Email: <strong><%= user.email %></strong></div>
		        <% if !(user.id == current_user.id) %>
		        <small>
					[<%= link_to "X", :action => :remove_admin, :user_id => user.id, :region_id => region.id %>] Revoke Admin Privileges
				</small>
		        <% end %>
			</div>
		<% end %>
    	</div>
		
	  <% end %>
	  <% form_tag 'add_admin' do %>
		  <hr/>
		  <h2 style="font-size: 1.2em; font-weight: bold;">Add Admins to <%=region.name%></h2>
		  <div>If there is a user that you think should be an administrator for <%=region.name%>, enter their <strong>email</strong> below and promote them.</div>
      <br />
		  <div>User's email address: 
		  	<%= text_field_tag "promote_admin_email" %>
			<%= hidden_field_tag "region_id", region.id %>
			<%= submit_tag "Promote to Admin" %>
			</div>
		  <br />
	  <% end %>
	  
	  </fieldset>
    <br /><br />
	  
	 <% end %>
 	  <small> For a user to become an administrator, they must already be registered with Empower Artists.</small>
</div>
